package org.zkoss.zk.ui;

import java.util.Date;

import org.ceva.training.persistence.bo.TrainingDetails;

import org.zkoss.calendar.impl.SimpleCalendarEvent;

public class TrainingSchedule extends SimpleCalendarEvent {

	private TrainingDetails data;
	private boolean locked=false;
	
	public Date getBeginDate() {
		return data.getStartDate();
	}

	public String getContent() {
		return "";
	}

	public String getContentColor() {
		return "#668CD9";
	}

	public Date getEndDate() {
		return data.getEndDate();
	}

	public String getHeaderColor() {
		return "#3467CE";
	}

	public String getTitle() {
		return data.getTrainingDescription();
	}

	public boolean isLocked() {
		// TODO Auto-generated method stub
		return locked;
	}

	public TrainingSchedule(TrainingDetails data, boolean locked) {
		this.data = data;
		this.locked = locked;
	}
	
	public TrainingDetails getData(){
		return this.data;
	}
}
